//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_setinitcode.sqf"
#include "x_setup.sqf"

private "_uc";
(_this select 0) call (_this select 1);
_uc = (_this select 0) getVariable QGVAR(unitcode);
if (isNil "_uc") then {
	_uc = [_this select 1];
} else {
	_uc set [count _uc, _this select 1];
};
(_this select 0) setVariable [QGVAR(unitcode), _uc];